<%@page import="ext.acae2.util.ReportUtil"%>
<%@page import="ext.acae2.document.helper.ECMDocHelper"%>
<%@page import="java.util.List"%>
<%@ include file="/netmarkets/jsp/util/begin.jspf"%>
<%
	List list = (List) commandBean.getRequest().getSession()
			.getAttribute("initECMReplyDocBeans");
	System.out.println(list.size());
	String topath = ECMDocHelper.exportECMDetailToExcel(list);
	ReportUtil.downloadFile(topath, response);
	response.flushBuffer();
	out.clear();
	out = pageContext.pushBody();
	out.print("<script>");
	out.print("window.close(); ");
	out.print("</script>");
%>
<%@ include file="/netmarkets/jsp/util/end.jspf"%>